package net.maxwoods.spring;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SpringAnnotationDemo {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
        HelloService helloService = ctx.getBean(HelloService.class);
        String value = helloService.sayHello("Max Woods");
        System.out.println(value);
    }
}
